using DealerPlatform.Core;
using DealerPlatform.Domain;
using DealerPlatform.Service.OrderApp.Dtos;
using DealerPlatform.Service.ShoppingCartApp.Dtos;

namespace DealerPlatform.Service.OrderApp;

public interface IOrderService : IOcTag
{
    Task<string> AddOrder(string customerNo, OrderMasterInputDto input, List<ShoppingCartDto> carts);
    Task<SaleOrderDto> GetOrderInfoByOrderNo(string orderNo);
    Task<bool> BuyAgain(string saleOrderNo);
    Task<List<SaleOrderDto>> GetSaleOrders(PageWithSortDto pageWithSortDto);
}